<template>
	<view>
		<view class="search_box">
			<image src="../../static/s1.png" class="goback" @click="gobackClick" mode="widthFix"></image>
			<text class="topicText">收到的私信</text>
		</view>
		<!-- 列表 -->
		<view class="prayList">
			<view class="prayOne">
				<image src="../../static/prayes.png" class="praysImg" mode="widthFix"></image>
				<view class="prayText">
					<view class="prayText_one">
						<text>祈福新闻</text>
						<text style="color: #8A7D7D;">50分钟前</text>
					</view>
					<view class="prayText_two">
						恭喜你的帖子成为了推荐~
					</view>
					<view class="prayText_there"></view>
				</view>
			</view>
			<view class="prayOne">
				<image src="../../static/prayes.png" class="praysImg" mode="widthFix"></image>
				<view class="prayText">
					<view class="prayText_one">
						<text>祈福新闻</text>
						<text style="color: #8A7D7D;">50分钟前</text>
					</view>
					<view class="prayText_two">
						恭喜你的帖子成为了推荐~
					</view>
					<view class="prayText_there"></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			//返回社区
			gobackClick() {
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style lang="scss">
	.goback {
		width: 22rpx;
		margin: 0 0rpx 0 28rpx;
	}

	.topicText {
		font-size: 35rpx;
		color: #FFFFFF;
		margin: 0 auto;
		letter-spacing: 2rpx;
		font-weight: 700;
	}

	.prayList {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 40rpx 30rpx 0;
		box-sizing: border-box;

		//background-color: pink;
		.prayOne {
			display: flex;
			width: 100%;
			margin: 0 0 50rpx 0;

			.praysImg {
				width: 98rpx;
				border-radius: 50%;
				margin-right: 15rpx;
			}

			.prayText {
				display: flex;
				flex-direction: column;
				font-size: 21rpx;
				color: #333333;
				width: 100%;

				.prayText_one {
					display: flex;
					width: 100%;
					justify-content: space-between;

				}

				.prayText_two {
					color: #8A7D7D;
					padding-top: 10rpx;
					overflow: hidden;
					-webkit-line-clamp: 1;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-box-orient: vertical;
				}

				.prayText_there {
					width: 100%;
					height: 1rpx;
					background-color: #f5f5f5;
					margin-top: 30rpx;
					box-sizing: border-box;
				}
			}
		}
	}
</style>
